package com.jmyd.sharding.enums;

import lombok.Getter;

/**
 * 系统错误信息枚举类
 *
 * @author samphin
 * @date 2020-12-12 17:21:08
 */
public enum SystemErrorEnum {

    /**
     * 文件系统管理
     */
    PLEASE_RETRY_AGAIN(500, "操作失败."),
    FILE_UPLOAD_ERROR(5000, "文件上传失败."),
    FOLDER_UPLOAD_ERROR(5001, "文件夹上传失败."),
    FILE_DELETE_ERROR(5002, "文件删除失败."),
    FILE_GET_ERROR(5003, "获取文件失败."),

    ;
    /**
     * 错误码
     */
    @Getter
    private Integer errorCode;

    /**
     * 错误消息
     */
    @Getter
    private String errorMsg;

    SystemErrorEnum(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
